package com.ebt.m.customer.ui;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import com.ebt.m.R;
import com.ebt.m.activity.BaseToolBarActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author Damon
 * @date 2017/11/17
 * 保单客户activity
 */

public class ActivityCustomerPolicy extends BaseToolBarActivity {

    private int from;
    @BindView(R.id.frame_content)
    FrameLayout frameContent;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_customer_policy);
        ButterKnife.bind(this);
        Bundle bundle = getIntent().getExtras();
        from = bundle.getInt("from");
        initView();
    }

    private void initView() {
        setTitle("保单客户");
        FragmentPolicyCustomer fragmentPolicyCustomer = FragmentPolicyCustomer.newInstance(from);
        FragmentManager fragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.replace(R.id.frame_content, fragmentPolicyCustomer);
        fragmentTransaction.commit();
    }
}
